package com.eh.iteratorAndComposition.base;

/**
 * Created by David on 2016/5/1.
 */
public interface MenuComponent extends Iterable<MenuComponent> {
    void add(MenuComponent menuComponent);

    void remove(MenuComponent menuComponent);

    MenuComponent get(int i);

    String getName();

    String getDescription();

    double getPrice();

    boolean isVegetarian();

    void print();

}
